/**
 * Created by zhangsong on 2019/9/22.
 */

export default [
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      {
        name: 'login',
        path: '/user/login',
        component: './user/login',
      },
    ],
  },
  {
    path: '/',
    component: '../layouts/SecurityLayout',
    routes: [
      {
        path: '/',
        component: '../layouts/BasicLayout',
        name: 'welcome',
        routes: [
          {
            path: '/',
            redirect: '/welcome',
          },
          {
            path: '/welcome',
            name: 'welcome',
            icon: 'smile',
            component: './Welcome',
          },
          // contractor
          {
            path: '/application/contractor/add',
            name: 'contractorAdd',
            icon: 'smile',
            component: './application/contractor/add',
          },
          {
            path: '/application/contractor/detail',
            name: 'contractorDetail',
            icon: 'smile',
            component: './application/contractor/detail',
          },
          {
            path: '/application/contractor/list',
            name: 'contractorList',
            icon: 'smile',
            component: './application/contractor/list',
          },
          {
            path: '/application/contractor/modify',
            name: 'contractorModify',
            icon: 'smile',
            component: './application/contractor/modify',
          },
          // staff
          {
            path: '/application/staff/add',
            name: 'staffAdd',
            icon: 'smile',
            component: './application/staff/add',
          },
          {
            path: '/application/staff/detail',
            name: 'staffDetail',
            icon: 'smile',
            component: './application/staff/detail',
          },
          {
            path: '/application/staff/list',
            name: 'staffList',
            icon: 'smile',
            component: './application/staff/list',
          },
          {
            path: '/application/staff/modify',
            name: 'staffModify',
            icon: 'smile',
            component: './application/staff/modify',
          },
          // vehicle
          {
            path: '/application/vehicles/add',
            name: 'vehicleAdd',
            icon: 'smile',
            component: './application/vehicles/add',
          },
          {
            path: '/application/vehicles/detail',
            name: 'vehicleDetail',
            icon: 'smile',
            component: './application/vehicles/detail',
          },
          {
            path: '/application/vehicles/list',
            name: 'vehicleList',
            icon: 'smile',
            component: './application/vehicles/list',
          },
          {
            path: '/application/vehicles/modify',
            name: 'vehicleModify',
            icon: 'smile',
            component: './application/vehicles/modify',
          },
          // setting
          {
            path: '/application/vaccine/setting',
            name: 'contractorAdd',
            icon: 'smile',
            component: './application/vaccine/index',
          },
          {
            path: '/application/vaccine/partbtime',
            name: 'vaccpartbtime',
            icon: 'smile',
            component: './application/vaccine/partbtime/index',
          },
          // alarm
          {
            path: '/application/alarmemail/list',
            name: 'alarmemailList',
            icon: 'smile',
            component: './application/alarmemail/list/index',
          },
          // 通行證辦理
          {
            path: '/application/temporarypass/add',
            name: 'temporaryAdd',
            icon: 'smile',
            component: './application/temporarypass/add/index',
          },
          {
            path: '/application/temporarypass/list',
            name: 'temporaryList',
            icon: 'smile',
            component: './application/temporarypass/list/index',
          },
          {
            path: '/application/temporarypass/detail',
            name: 'temporaryDetail',
            icon: 'smile',
            component: './application/temporarypass/detail/index',
          },
          {
            path: '/application/temporarypass/modify',
            name: 'temporaryModify',
            icon: 'smile',
            component: './application/temporarypass/modify/index',
          },
          {
            component: './404',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    component: './404',
  },
];
